package com.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.bean.Books;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author wjf
* @description 针对表【books】的数据库操作Mapper
* @createDate 2022-10-11 18:27:22
* @Entity com.example.bean.Books
*/
public interface BooksMapper extends BaseMapper<Books> {

    IPage<Books> findPage(IPage<Books> page, @Param("name") String name, @Param("author") String author);

    @Update("update books set status=1 where id=#{id}")
    Integer updateStatus(Integer id);


}




